<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - FooTable</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/footable/footable.core.css" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg"> 

    <div class="wrapper wrapper-content animated fadeInRight">
 
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title"> 
	                            <h5>评论管理列表</h5>  
                        </div>
                        <div class="ibox-content">
                            <input type="text" class="form-control input-sm m-b-xs" id="filter"
                                   placeholder="搜索条件...">

                            <table class="footable table table-stripped" data-page-size="8" data-filter=#filter>
                                <thead>
                                        <tr>
                                            <th>书籍编号</th>
                                            <th>评论人</th>
                                            <th>评论时间</th>
                                            <th>评论内容</th> 
                                            <th>操作</th> 
                                        </tr>
                                    </thead>
                                    <tbody>
                                    	<c:forEach var="u" items="${comments }"> 
                                    	  
	                                        <tr class="gradeX">
	                                            <td>${u.book_key }</td>
	                                            <td>${u.name }
	                                            </td> 
	                                            <td class="center">${u.commentdate }</td>
	                                            <td class="center">${u.msg }</td> 
	                                            <td class="center">
	                                            &nbsp;<a href="UserInfoServlet?opr=delComment&&comment_id=${u.id }">删除</a>
	                                            </td>
	                                        </tr>  
                                    	</c:forEach>
                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <td colspan="5">
                                                <ul class="pagination pull-right"></ul>
                                            </td>
                                        </tr>
                                    </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/footable/footable.all.min.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() { 
            $('.footable').footable();
            $('.footable2').footable();

        });

    </script>

    
    

</body>

</html>
